package com.wx.mapper;

import com.wx.common.MyMapper;
import com.wx.entity.SysSubscribeUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.Optional;

/**
 * <p>Title:      SysSubscribeUserController. </p>
 * <p>Description 关注的用户信息表 </p>
 * <p>Copyright: Copyright (c) 2016</p>
 * <p>Company:    医百科技有限公司 </p>
 *
 * @author         yangwensheng@100doc.com.cn
 * @since      2021-03-03 11:36:07
 */
@Mapper
@Component
public interface SysSubscribeUserMapper extends MyMapper<SysSubscribeUser> {

    Optional<SysSubscribeUser> selectByKeyOptional(Object key);

    int saveSubscribeUser(SysSubscribeUser sysSubscribeUser);

    int deleteByOpenId(String openId);

    SysSubscribeUser selectByOpenId(String openId);

    int saveSubscribeUserSample(SysSubscribeUser sysSubscribeUser);
}
